import App from './App'
import uView from '@/uni_modules/uview-ui'
import Vue from 'vue'
import store from './store/vuex.js'
import CommonUtil from '@/utils/commonUtil.js';
import globalMixins from '@/utils/globalMixins.js';

Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$Util = CommonUtil;
Vue.mixin(globalMixins)

// #ifdef MP-WEIXIN
 var API_PREFIX = {
	'release': 'https://lyggnxcx.gnxzhzx.com',
	'trial': 'https://lyggn.gnxzhzx.com',
	'develop': 'https://lyggn.gnxzhzx.com'
 }[__wxConfig.envVersion];
API_PREFIX = 'https://lyggn.gnxzhzx.com'
// #endif

// #ifdef H5
 var API_PREFIX = window.$Config.API_PREFIX || location.origin;
// #endif

Vue.prototype.API_PREFIX = API_PREFIX;

const app = new Vue({
    ...App,
		store
})

app.$mount()
global.vueApp = app;